#include <stdio.h>
#include <stdbool.h>

int main(){
	bool digitSeen[10] = {false};

	printf("Enter a digit:");
	long n;
	int digit;

	scanf("%ld", &n);
	while (n>0) {
		digit = n % 10;
		if (digitSeen[digit])
				break;
		else
				digitSeen[digit] = true;
		n = n/10;
	}
	if (n > 10)
			printf("Repeated digit\n");
	else
			printf("No repeat digit\n");
}
